
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$meta_title}</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" title="defaultStyle">
#mainleft {
	width: 775px;
	float: left;
}
#mainright {
	width: 320px;
	float: right;
}
.style1 {
	clear: both;
	font-family: "华文行楷";
	font-size: 24pt;
	color: #FFFFFF;
	font-weight: bold;
}
li{list-style-type:none}
.star{font-family: Tahoma;}
.star img{display: inline;}
.seach{
		border: 1px solid #e5e5e5;
		height: 20px;
		line-height: 20px;
		margin-left: 16px;

		}
.btn1 {
			height: 22px;
			width: 64px;
			background: url(/page/main1195/images/search_03.gif);
			border: none;
			position: relative;
			top: 5px;
			*top:0;

		}


</style>
<link rel="shortcut icon" href="/page/main1195/favicon.ico"  type="image/x-icon" />
<link href="/page/main1195/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript">var memberpath = "/member/";</script>
<script type="text/javascript" src="/member/statics/js/zh-cn.js"></script>
<script type="text/javascript" src="/member/statics/js/jquery.min.js"></script>
<script type="text/javascript" src="/member/statics/js/jquery.artDialog.js?skin=default"></script>
<script type="text/javascript" src="/member/statics/js/validate.js"></script>
<script type="text/javascript" src="/member/statics/js/admin.js"></script>
<script type="text/javascript" src="/member/statics/js/dayrui.js"></script>
<script type="text/javascript">
$(function(){
	$("#dr_loadmore a").click(function(){
		var page = $("#dr_page").val();
		$("#dr_loading").html("<div style='padding:30px;text-align:center;'><img src='{MEMBER_THEME_PATH}images/loading.gif' /></div>");
		$.get("{$moreurl}", {page:page}, function(data){
            $("#dr_loading").html("");
			if (data != "null") {
				$("#dr_body").append(data);
				$("#dr_page").val(Number(page) + 1);
                var url = window.location.href;
                url = url.replace(/&page=[0-9]+/, '');
                history.pushState({}, "title", url+"&page="+page);
			}
		});
	});
});
function dr_delete(id) {
	var _url = window.location.href;
    art.dialog.confirm("你确认要删除吗？", function(){
		var _data = $("#myform").serialize();
		if ((_data.split('ids')).length-1 <= 0) {
			$.dialog.tips("到底标删除？您还没有选择呢", 2);
			return true;
		}
		$.ajax({type: "POST",dataType:"json", url: _url, data: _data, success: function(data) {
				if (data.status == 1) {
					$.dialog.tips(data.code, 3, 1);
					$("input[name='ids[]']:checkbox:checked").each(function(){
						$("#dr_row_"+$(this).val()).remove();
					});
				} else {
					$.dialog.tips(data.code, 3, 0);
				}
                art.dialog.close();
                return false;
			},
			error: function(HttpRequest, ajaxOptions, thrownError) {
				alert(thrownError + "\r\n" + HttpRequest.statusText + "\r\n" + HttpRequest.responseText);
			}
		});
		return true;
	});
	return false;
}
</script>
</head>
<body>


<div id="container_page">
<div id="head">
<table width="100%" height="270" border="0" cellpadding="0" cellspacing="0">
  <tbody><tr>
    <td><img src="/page/main1195/images/banner.jpg" width="1100" height="270"></td>
    </tr>
</tbody></table>


</div>



<div id="main_1">
{if $member}

<link href="/page/main1195/students.css" rel="stylesheet" type="text/css">
<link href="/page/main1195/index.css" rel="stylesheet" type="text/css">
<link href="/member/statics/default/images/member.css" rel="stylesheet" type="text/css">

<div id="main">
<div id="left">
 <div id="function">
 	 <div class="fa_bg">
        <div class="fa_icon"><img src="/page/main1195/images/gongneng_icon.gif" width="28" height="23"></div>
        <div class="fa_font">学习中心</div>
    </div>
    <div id="classified">
    	<div id="menu1" onClick="menu(this.id);" class="icon_bg2" onMouseOver="over(this);" onMouseOut="over(this);">
			<a href="/video/"><p>选课中心</p></a>
		</div>
    		<div id="sonmenu1" style="display: block;">
                {list action=category module=video pid=0 return=c1}

    <div id="parent34" style="cursor:pointer;" class="{if $c1.child}menu_selected{else}sub_font{/if}">
	    				<a href="{$c1.url}" style="">
    						{$c1.name}
    					</a>
	    			</div>

     <div id="son34" class="sonMenu">
     {list action=category module=video pid=$c1.id return=c2}
		    				<div class="{if $get.id==$c2.id}menu_erselected{else}menu_er{/if}"><a href="{$c2.url}" style="">{$c2.name}</a></div>
    {/list}
    </div>
{/list}


    		</div><div id="menu3" onClick="menu(this.id);" class="icon_bg1" onMouseOver="over(this);" onMouseOut="over(this);">
			<a  href="/video/index.php?c=selection&m=index&type=1" target="_self"><p>我的课程</p></a>
		</div>




		<div id="menu7" onClick="menu(this.id);" class="icon_bg1" onMouseOver="over(this);" onMouseOut="over(this);">
			<p style="cursor: pointer;" onClick="window.location.href='/member/index.php?s=news&c=home&m=add'">我的投稿</p>
		</div>
    	<div id="sonmenu7" style="display: none;">
        		<div class="menu_select">
					<a href="/member/index.php?s=news&c=home&m=index" target="_self" style="color:#A71218;">已通过的投稿</a>
				</div>
	        	<div class="sub_font">
					<a href="/member/index.php?s=news&c=verify&m=index" target="_self" style="">待审核的投稿</a>
				</div>

	        	<div class="sub_font">
					<a href="/member/index.php?s=news&c=back&m=index" target="_self" style="">退回的投稿</a>
				</div>
        	</div>


		 <div id="menu9" onClick="menu(this.id);" class="icon_bg1" onMouseOver="over(this);" onMouseOut="over(this);">
		 	<a href="/member/index.php?c=pm&m=index" target="_self"><p>站内短信</p></a>
		</div>
			<div id="sonmenu9" style="display: none;">
				<div class="sub_font">
					<a href="/member/index.php?c=pm&m=index" target="_self">收件箱</a>
				</div>
				<div class="sub_font">
					<a href="/student/note!findFromUser.action?f" target="_self">发件箱</a>
				</div>
			</div>
        <div id="menu10" onClick="menu(this.id);" class="icon_bg1" onMouseOver="over(this);" onMouseOut="over(this);">
			<a  href="#" target="_self"><p>学习档案</p></a>
		</div>

    </div>
 </div>
    <!------------------------------------学员信息--------------------------------------------->
<div id="xyxx">
	<div class="xyxx_bg">
    	<div class="welcome"><img src="/page/main1195/images/welcome.jpg" width="68" height="25"></div>
        <div class="name">admin</div>
    </div>
    <div class="we_xg">
      <div class="xgmm"><a href="{dr_member_url('account/password')}"><img src="/page/main1195/images/xgmm.gif" width="75" height="30"></a></div>
      <div class="xgxx"><a href="{dr_member_url('account/index')}"><img src="/page/main1195/images/xgxx.gif" width="101" height="30"></a></div>
       <div class="xgxx"><a href="{dr_member_url('login/out')}">退出</a></div>
    </div>






</div>
</div>
<script>
menuInit();
$(".sonMenu").hide();
showSonMenu('');

</script>
			<!------------------------------------右边--------------------------------------------->

<div id="right">
   <div class="right_bg">
  	 <div class="fa_icon"><img src="/page/main1195/images/new_icon.gif" width="28" height="23"></div>
     <div class="fa_font">选课中心</div>
   </div>
   <div class="title_font">
   <div style="float: left;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;width: 380px;">您所在的位置：选课中心</div>

  	 <div style="margin-right: 0px;float: left;position: relative;top:-3px;*top:0;">
			 <input type="text" value="课程名/主讲人/关键字" name="keyword" onclick="this.value=''" id="keyword" size="20" class="seach">
			 <input type="button" value="" style="" class="btn1" onclick="setParmsValue('keyword','')">&nbsp;

	</div>

   </div>
   <div class="xian"></div>

   <!-- 选课导航 -->

   <!-- 课程显示 -->
			<table cellpadding="0" cellspacing="0" class="centerTable" style="margin-top: 20px;">
				<tbody>

{list action=module  catid=$catid field=id,title,url,thumb,description,actor,type,updatetime order=displayorder,updatetime page=1 more=1}
				<tr>
					<th width="129" rowspan="3"><div class="tupian">
					<a href="{$t.url}"><img src="{dr_get_file($t.thumb)}" onerror="this.src='{dr_get_file($t.thumb)}'" width="163" height="126"></a></div>
					</th>
					<td>
						<a href="{$t.url}"><b>{$t.title}</b></a>
					</td>
				</tr>
				<tr>
					<td>
					<span style="float:left;">主<span style="margin-left:7px;">讲</span><span style="margin-left:7px;">人：</span>{$t.actor}</span>
				  <span class="rightSpan_01 rightSpan_05">
						课程类型：<span class="number">{if $t.type==1}必修{else}选修{/if}</span>
						<span class="margin_left_01 margin_left_02">学分：<span class="number">{get_selection_by_video($t.id, 'points')}</span></span>
						<span class="margin_left_01 margin_left_02">选课人次：<span class="number">{get_selection_by_video($t.id, 'sum')}</span></span>
					</span>
					</td>
				</tr>
                <tr>
					<td>
					<span style="float: right;width: 583px;">{$t.description}</span>职务职称：
					</td>
				</tr>

                <tr style="">
                	<td colspan="2" style="background:#fff; border-bottom:1px solid #c4e0ec;">
                	<?php
                	$selection = get_selection_member($t['id'], $member['uid']);
                	?>


                    {if $selection}
                	  <span id="course4796">
		                <p class="selectedCourse">已选此课</p>
		                <p class="noSelectedCourse"><a href="javascript:;">学习进度</a></p>
		                <span class="jindu"><span class="time" style="width:{$selection[progress]}px;"></span></span><span class="jindu_bfs">{$selection[progress]}%</span>
		            </span>
		            {else}
		            <span id="course4796">
	                  	<p class="noSelectedCourse"><a href="javascript:;" data-event="select_course" data-id="{$t.id}">我要选课</a></p>
	                </span>
		            {/if}

                    <p class="time_01">上传时间：<span class="number" style="color:#555;">{dr_date($t._updatetime, 'Y-m-d')}</span></p>

                    </td>
                </tr>

{/list}
			</tbody></table>
			<div>
			<script type="text/javascript">
$(function(){
	$("[data-event=select_course]").click(function(){
		if(confirm('您确定要选择此课程？')) {
			$.getJSON('{MODULE_URL}index.php?c=selection&m=add&id={$t.id}', function(ret) {
				alert(ret.code);
				if(ret.status == 0) {
					return false;
				} else  {
					window.location.reload();
					return true;
				}
			});
		} else{
			return false;
		}
	})
})
</script>
<div class="pager">{$pages}<div class="clear"></div></div> </div>
   </div>

<div class="clear">
 </div>
   </div>

{else}

<link href="/member/statics/default/images/member.css" rel="stylesheet" type="text/css">
<link href="/member/statics/default/images/reg.css" rel="stylesheet" type="text/css">
<div class="content">
    <div class="login_wp clearfix">
        <div class="login_mod">
            <h3>会员登录<span>Login</span></h3>
            <form method="post" action="/member/index.php?c=login">
           <input name="back" type="hidden" value="{$back_url}" />
            <ul>
                <li>
                	<strong>会员：</strong>
                    <input class="input_text" type="text" maxlength="64" autofocus="autofocus"  id="dr_username" name="data[username]" />
                </li>
                <li>
                	<strong>密码：</strong>
                    <input class="input_text" type="password" id="dr_password" name="data[password]" />
                </li>

                 <li class="mbutton">
                    <button type="submit" value="">
                         登录
                    </button>
                    <a href="{dr_member_url('login/find')}">忘记密码？</a>
                </li>
            </ul>
            </form>

        </div>
    </div>
</div>
{/if}

</div>
<div id="foot">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tbody><tr>
      <td height="6" align="center"></td>
    </tr>
  </tbody></table>
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tbody><tr>
      <td height="6" align="center"><img src="/page/main1195/images/dixian.jpg" width="1100" height="6"></td>
    </tr>
  </tbody></table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tbody><tr>
      <td height="6" align="center"></td>
    </tr>
  </tbody></table>
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tbody>
</tbody></table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#cf090a">
  <tbody><tr>
    <td height="65" align="center" class="foothang"><table width="96%" height="4" border="0" cellspacing="0" cellpadding="0" bgcolor="#e8c70f">
      <tbody><tr>
        <td></td>
      </tr>
    </tbody></table>
      <table width="96%" height="8" border="0" cellspacing="0" cellpadding="0" bgcolor="#cf090a">
        <tbody><tr>

          <td></td>
        </tr>
      </tbody></table>
      版权所有 © 中共大连海洋大学工会&nbsp;&nbsp;&nbsp; 地址：辽宁省大连市沙河口区黑石礁街52号（黄海校区）&nbsp;&nbsp;&nbsp; 邮编：116023<br>
      &nbsp;&nbsp;&nbsp; 校团委<span lang="EN-US">电话：0411-84762830</span>　　学生会<span lang="EN-US">电话：0411-84762689</span>　　广播站<span lang="EN-US">电话：0411-84762690</span></td>
  </tr>
</tbody></table>
  </div>
</div>
</body></html>